import CreditOpinion from "./CreditOpinion";
import reducer from "./reducer";
import { ApiSDK } from "../../services";
import * as action from "./action";

export default {
    widgetId: "credit-opinion",
    renderMode: "server",
    Component: CreditOpinion,
    action,
    reducer,
    getInitState: (params, query) => {
        const sdk = new ApiSDK();
        // return sdk.getCreditOpinionData(params, query).then(res => {
        return { name: "eric", widgetName: "CO", title: "信用意见" };
        // });
    }
};